package pojo;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="customers")
public class Customer {
	@EmbeddedId
	private FullName id;
	
	@Column(name="cname",nullable=true,length=40,insertable=true,updatable=true,unique=false)
	private String cname;
	//@Transient
	private int age;
	@Column(columnDefinition="char(1)")
	private boolean sex;
	
	
	
	public FullName getId() {
		return id;
	}
	public void setId(FullName id) {
		this.id = id;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
}
